package self.hoy.demo.cloud.order.lb;

import org.springframework.cloud.client.ServiceInstance;

import java.util.List;

/**
 * @author 三共小不
 * @date 2020/6/2
 */
public interface LoadBalancer {

    /**
     * 从若干个服务实例中选取一个
     * @param si
     * @return
     */
    ServiceInstance instances(List<ServiceInstance> si);
}
